<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>select</title>
    <script src="js/jquery-3.6.0.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        img {
            height: 10px;
            width: 15px;
        }

        #weibo {
            margin: 20px 0 0 1000px;
        }

        #blog {
            margin: 20px 0 0 0;
        }

        #email {
            margin: 20px 0 0 0;
        }

        a {
            display: block;
            text-decoration: none;
            line-height: 35px;
            text-align: center;
            padding: 5px;
        }

        li {
            display: none;
            list-style-type: none;
            /* padding: 5px; */
            border: 1px solid #FF8502;
            border-top: none;
        }

        ul {
            float: left;
            cursor: pointer;
        }

        /* 设置li背景颜色 */
        ul li a:hover {
            background-color: #FFF5DA;
            /* padding: 5px; */
        }

        /* 设置top背景颜色*/
        #weibo #top_one:hover {
            background-color: #EDEEF0;
        }

        #blog #top_two:hover {
            background-color: #EDEEF0;
        }

        #email #top_three:hover {
            background-color: #EDEEF0;
        }
    </style>
</head>

<body>
    <div id="select">
        <ul id="weibo">
            <a id="top_one">微博<img src="image/orange_v.png"></a>
            <li>
                <a href=" ">私信</a>
            </li>
            <li>
                <a href=" ">评论</a>
            </li>
            <li>
                <a href=" ">@我</a>
            </li>
        </ul>
        <ul id="blog">
            <a id="top_two">博客<img src="image/orange_v.png"></a>
            <li>
                <a href=" ">博客评论</a>
            </li>
            <li>
                <a href=" ">未读提醒</a>
            </li>
        </ul>
        <ul id="email">
            <a id="top_three">邮箱<img src="image/orange_v.png"></a>
            <li>
                <a href=" ">免费邮箱</a>
            </li>
            <li>
                <a href=" ">VIP邮箱</a>
            </li>
            <li>
                <a href=" ">企业邮箱</a>
            </li>
        </ul>
    </div>
    <script>
        //下拉列表隐藏、显示
        $("#weibo").hover(function () {
            $(" #weibo li").show();
        }, function () {
            $(" #weibo li").hide();
        })

        $("#blog").hover(function () {
            $(" #blog li").show();
        }, function () {
            $(" #blog li").hide();
        })

        $("#email").hover(function () {
            $(" #email li").show();
        }, function () {
            $(" #email li").hide();
        })
    </script>
</body>

</html>